<form id="pagerForm" action="jms/stock/lookup">

</form>

<div class="pageHeader">
	<form rel="pagerForm" method="post" action="jms/stock/lookup" onsubmit="return dwzSearch(this, 'dialog');">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>部门名称:</label>
					<input class="textInput" name="name" value="" type="text">
				</li>
				<li>
					<label>部门编号:</label>
					<input class="textInput" name="orgNum" value="" type="text">
				</li>
				<li>
					<label>部门经理:</label>
					<input class="textInput" name="fullName" value="" type="text">
				</li>
				<li>
					<label>上级部门:</label>
					<input class="textInput" name="parentOrg.orgName" value="" type="text">
				</li>
			</ul>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">

	<table class="table" layoutH="118" targetType="dialog" width="100%">
		<thead>
			<tr>
				<th orderfield="name">物料名</th>
				<th orderfield="unit">计量单位</th>
				<th orderfield="model">规格型号</th>
				<th orderfield="supplier">供应商</th>
				<th width="80">选择</th>
			</tr>
		</thead>
		<tbody>
		<#list pager.list as m>
			<tr>
				<td>${(m.name)!}</td>
				<td>${(m.unit)!}</td>
				<td>${(m.model)!}</td>
				<td>${(m.supplier)!}</td>
				<td>
					<a class="btnSelect" href="javascript:$.bringBack({mid:'${(m.id)!}', name:'${(m.name)!}',unit:'${(m.unit)!}', model:'${(m.model)!}',supplier:'${(m.supplier)!}'})" title="查找带回">选择</a>
				</td>
			</tr>
		</#list>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">
			<span>每页</span>

			<select name="numPerPage" onchange="dwzPageBreak({targetType:'dialog', numPerPage:'10'})">
				<option value="10" selected="selected">10</option>
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select>
			<span>条，共2条</span>
		</div>
		<div class="pagination" targetType="dialog" totalCount="2" numPerPage="10" pageNumShown="1" currentPage="1"></div>
	</div>
</div>